#!/bin/bash

# 复制服务文件到系统目录
sudo cp rag-service.service /etc/systemd/system/

# 重新加载systemd配置
sudo systemctl daemon-reload

# 启用服务开机自启
sudo systemctl enable rag-service

# 启动服务
sudo systemctl start rag-service

# 查看服务状态
sudo systemctl status rag-service 